home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Floppyshop 2
/
Floppyshop - 2.zip
/
Floppyshop - 2.iso
/
diskmags
/
5791-.end
/
dmg-6260
/
articles
/
snippets.doc
< prev
next >
Wrap
Text File
|
1993-07-02
|
2KB
|
83 lines
SNIPPETS
~~~~~~~~~~
Here is just a list of trivial routines that MAY come in handy ONCE,
and then be of no use whatsoever (you could call this document a disk-
filler!)
JOYSTICK POSITIONS
5 1 9
\ | /
\|/
4---0---8
/|\
/ | \
6 2 10
The easy way to remember is this:
UP (1) DOWN (2) LEFT (4) RIGHT (8)
Diagonally up-left = UP+LEFT = 1+4 = 5
Diagonally down-right = DOWN+RIGHT = 2+8 = 10
SET PAINT
Syntax: SET PAINT Type,Pattern,Border
Type: 0=no fill Pattern=from 1 to either 12 or 24
1=normal
2=dotted (24 types) Border=0 or 1 (no or yes)
3=lined (12 types)
4=pattern (doesn't work!)
SET LINE
Syntax: SET LINE Mask,Thickness,Startpoint,Endpoint
Mask = 16-bit binary number
Thickness = 1 to 40
Startpoint and Endpoint = Type of end: 0 = squared
1 = arrowed
2 = rounded
LASER-BUZZ SOUND
volume 16 : envel 8,100 : play 1,32,0 : play 2,16,0 : play 3,24,0
This produces a wierd laser sound. Try messing about with the
parameters, or substitute these:
envel 8,[100/200/80/110/300/225/25/250/140/50]
play 1,[64/8/56/4/20/16/80/0/24],0
play 2,[8/80/16/96/3/30/70/50/38],0
play 3,[40/64/48/12/32/84/4/75/96/47],0
BITPLANES
Colour 4 3 2 1
---------------
0 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 1 0 1 0
11 1 0 1 1
12 1 1 0 0
13 1 1 0 1
14 1 1 1 0
15 1 1 1 1
Article: BLACK EAGLE 2/7/93